package models;

import play.db.jpa.Blob;
import java.util.*;
import javax.persistence.*;
import play.db.jpa.*;

//ragab 

/**
 * 
 * this class create an object of each media file for each tutorial
 * 
 * @author Mohamed Ahmed Ragab
 * 
 * @param public String name, public Blob photo, public String type, public
 *        boolean autoplay,
 * @ManyToOne public Tutorial tut, public long tutID
 * 
 */
@Entity
public class Media extends Model {

	public String name;
	public Blob photo;
	public String type;
	public boolean autoplay;
	@ManyToOne
	public Tutorial tut;
	public long tutID;

}